package org.platform.executor.knowledge;

import com.mc.mic.core.bus.provider.IMicProviderServiceExecutor;
import org.platform.mo.csmo.cmd10025.KnowledgeQueryRequestParam;
import org.platform.mo.csmo.cmd10025.KnowledgeQueryResponseParam;
import org.platform.service.knowledge.KnowledgeServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author FengJie
 * @date 2018/6/7
 */
@Service
public class QueryKnowledgeExecutor implements IMicProviderServiceExecutor<KnowledgeQueryRequestParam, KnowledgeQueryResponseParam> {
    @Autowired
    private KnowledgeServiceImpl service;
    @Override
    public KnowledgeQueryResponseParam doExecute(KnowledgeQueryRequestParam requestParam) {
        return service.queryKnowledge(requestParam);
    }

}
